from django.contrib import admin

from first.models import TbSubject, TbTeacher

# Register your models here.
#admin.site.register(TbSubject)
#admin.site.register(TbTeacher)

class SubjectAdmin(admin.ModelAdmin):
    list_display = ('no', 'name', 'intro', 'is_hot')
    search_fields = ('name',)
    ordering = ('no',)

class TeacherAdmin(admin.ModelAdmin):
    list_display = ('no','name','sex','birth')
    search_fields = ('name',)
    ordering = ('no',)

admin.site.register(TbSubject, SubjectAdmin)
admin.site.register(TbTeacher, TeacherAdmin)